<!DOCTYPE html>
<script src="../../resources/check-layout.js"></script>
<div style="width:600px;">
    <div>
        <table cellspacing="0" cellpadding="4" rules="all" border="1" style="border: solid 1px red;" data-expected-width=600>
            <tbody>
            <tr>
                <td>Column</td>
                <td>Column</td>
                <td>Column</td>
                <td>Column</td>
                <td>Column</td>
                <td>Column</td>
                <td>Column</td>
                <td>Column</td>
            </tr>      
            <tr>
                <td>Text Longword</td>
                <td>Text</td>
                <td>Just some random text to make the column width just that little bit wider.</td>
                <td>Text</td>
                <td>Text</td>
                <td>Text</td>
                <td>Text</td>
                <td>Text</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<p id="test-output"></p>
<p>crbug.com/498165: If we overallocate width in a table with auto cells ensure we unwind completely.</p>
<script>
    window.checkLayout("table", document.getElementById("test-output"));
</script>



